'use strict';

/**
 * @ngdoc filter
 * @name jgappApp.filter:username
 * @function
 * @description
 * # username
 * Filter in the jgappApp.
 */
angular.module('jgappApp')
    .filter('username', function() {
        return function(input, len) {
            len = len || 2;
            if (input) {
                input=input.slice(-2)
            }
            return input;
        };
    });
